<?php
class Core_View_Helper_SocialUrlKeepIdPage extends Zend_View_Helper_Abstract{

    const CHEATING_CODE = 'cheating';
	public function __construct()
	{
	}

    /**
     * Get social url
     * @param string|array $uri
     * @return string
     */
	public function socialUrlKeepIdPage($uri = array()){
		if( is_array($uri) )
		{
			$id_page    = Zend_Controller_Front::getInstance()->getRequest()->getParam('id_page',null);
			$uri		= array_merge($uri,array('module' => 'contest','id_page' => $id_page));
			return $this->view->socialUrl($uri,null,true);
		}
	}
}